package com.shixun.dds_11.service;

import com.shixun.dds_11.dto.AddressPageQueryDTO;
import com.shixun.dds_11.entity.DdsAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shixun.dds_11.result.PageResult;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LH + SSL
 * @since 2024-07-05
 */
public interface IDdsAddressService extends IService<DdsAddress> {

    int insert(DdsAddress ddsAddress);

    int deleteOne(Integer id);

    int deleteAll(Integer userId);

    int update(DdsAddress ddsAddress);

    DdsAddress findOne(Integer id);

    List<DdsAddress> findAll(Integer userId);

    PageResult pageQuery(AddressPageQueryDTO addressPageQueryDTO);
}
